<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="http://www.cnboy.top/Forfun/Bootstrap/css/bootstrap.min.css">
    <script src="http://www.cnboy.top/Forfun/Bootstrap/js/jquery.min.js"></script>
    <script src="http://www.cnboy.top/Forfun/Bootstrap/js/popper.min.js"></script>
    <script src="http://www.cnboy.top/Forfun/Bootstrap/js/bootstrap.min.js"></script>
    <title>Artlist</title>
</head>
<body>
<div class="container">
    <div class="table-responsive">
        <table class="table table-bordered tab-hover">
            <thead>
            <tr>
                <th>序号</th>
                <th>日期</th>
                <th>标题</th>
                <th>分类</th>
                <th>回复</th>
                <th>状态</th>
            </tr>
            <tbody>
        <?php foreach ($arts as $a ) {?>
        <tr>
            <td><?php echo $a['art_id']; ?></td>
            <td><?php echo date('Y/m/d',$a['pubtime']); ?></td>
            <td><a href="#"><?php echo $a['title']; ?></a></td>
            <td><?php echo $a['cat_name']; ?></td>
            <td><span><?php echo $a['comm']; ?></span></td>
            <td>
                <a href="artedit.php?art_id=<?php echo $a['art_id']; ?>">编辑</a>|
                <a href="artdel.php?art_id=<?php echo $a['art_id'];?>&cat_name=<?php echo $a['cat_name'];?>">删除</a>
            </td>
        </tr>
        <?php } ?>
            </tbody>
        </table>
    </div>
    <div class="container">
        <a href="logout.php">退出登录</a>
    </div>
</div>
</body>
</html>